﻿<%@ Page Language="C#" MasterPageFile="~/MasterPages/MasterPage1.master" AutoEventWireup="true" CodeFile="Guest_Dangki.aspx.cs" Inherits="ChucNang_Guest_Guest_Dangki" Title="Untitled Page" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<center>
<h2>ĐĂNG KÝ TÀI KHOẢN</h2>

<table align="left" cellspacing="10px">                        
            
            <tr>
                <td align="right" style="width:120px;">
                    CMND:
                </td>
                <td align="left">
                    <asp:TextBox ID="txtCMND" runat="server" Width="116px"></asp:TextBox>
                
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                        ControlToValidate="txtCMND" ErrorMessage="*"></asp:RequiredFieldValidator>
                    <asp:CompareValidator ID="CompareValidator3" runat="server" 
                        ControlToValidate="txtCMND" ErrorMessage="CMND không hợp lệ" Font-Size="8px"
                        Operator="DataTypeCheck" Type="Integer"></asp:CompareValidator>
                </td>
            </tr>
            <tr>
                <td align="right" >
                    Password:</td>
                <td align="left" >
                    <asp:TextBox ID="txtPassword" runat="server" Width="142px" TextMode="Password"></asp:TextBox>
                    <asp:RegularExpressionValidator ControlToValidate="txtPassword" 
                        ID="RegularExpressionValidator2" runat="server" 
                        ErrorMessage="Mật khẩu phải nhiều hơn 6 kí tự" Font-Size="8pt" 
                        ValidationExpression=".{6,}"></asp:RegularExpressionValidator>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                        ControlToValidate="txtPassword" 
                        ErrorMessage="*"></asp:RequiredFieldValidator>
                </td>
            </tr>
            
            <tr>
                <td align="right">
                    Nhập lại pasword:
                </td>
                <td align="left">
                    <asp:TextBox ID="txtNhapLaiPass" runat="server" Width="140px" 
                        TextMode="Password"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
                        ControlToValidate="txtNhapLaiPass" ErrorMessage="*"></asp:RequiredFieldValidator>
                    <asp:CompareValidator ID="CompareValidator1" runat="server" 
                        ControlToCompare="txtPassword" ControlToValidate="txtNhapLaiPass" 
                        ErrorMessage="Password không khớp" Font-Size="8pt" ></asp:CompareValidator>
                </td>
                
            </tr>
            
            <tr>
                <td align="right">
                    Họ và tên:</td>
                <td align="left">
                    <asp:TextBox ID="txtHoTen" runat="server" Width="190px"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" 
                        ControlToValidate="txtHoTen" ErrorMessage="*"></asp:RequiredFieldValidator>
                </td>
                                
            </tr>
            
            
                        
            <tr>
                <td align="right"">
                    Hình Ảnh:
                </td>
                <td align="left">
                    <asp:FileUpload ID="fileuploadHinhAnh" runat="server" Width="267px" />
                </td>
                
            </tr>
            
            <tr>
                <td align="right" >
                    Email:
                </td>
                <td align="left" >
                    <asp:TextBox ID="txtEmail" runat="server" Width="261px"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" 
                        ControlToValidate="txtEmail" ErrorMessage="*"></asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
                        ControlToValidate="txtEmail" Font-Size="8pt"  ErrorMessage="Email không hợp lệ" 
                        ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator>
                </td>                
            </tr>
            
             <tr>
                <td align="right" >
                    Điện thoại:
                </td>
                <td align="left">
                    <asp:TextBox ID="txtDienThoai" runat="server"></asp:TextBox>
                    <asp:CompareValidator ID="CompareValidator2" runat="server" 
                        ControlToValidate="txtDienThoai" Font-Size="8pt" ErrorMessage="Số điện thoại không hợp lệ" 
                        Operator="DataTypeCheck" Type="Integer"></asp:CompareValidator>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" 
                        ControlToValidate="txtDienThoai" ErrorMessage="*"></asp:RequiredFieldValidator>
                </td>
                
            </tr>
            
            <tr>
                <td align="right">
                    Địa chỉ:
                </td>
                <td align="left" >
                    <asp:TextBox ID="txtDiaChi" runat="server" Height="67px" TextMode="MultiLine" 
                        Width="270px"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" 
                        ControlToValidate="txtDiaChi" ErrorMessage="*"></asp:RequiredFieldValidator>
                </td>
                
            </tr>           
            
            <tr>
                <td>
                </td>
                <td>
                    <asp:CheckBox ID="chkGuiMail" runat="server" 
                        Text="Gửi email thông tin sản phẩm yêu thích" />
                </td>
            </tr>
            
            <!-- <tr> -->
            <!--                 <td> -->
            <!--                     Tài khoản ngân hàng</td> -->
            <!--                 <td> -->
            <!--                     <asp:TextBox ID="txtMaTKNganHang" runat="server" Width="205px"></asp:TextBox> -->
            <!--                 </td> -->
            <!--             </tr>-->
            
            <tr align="right">
                <td class="style3" align="center" colspan="2">
                    <asp:Button ID="btnDangKy" runat="server"  Text="Đăng Ký" 
                        Width="74px" onclick="btnDangKy_Click" />
                </td>
                
            </tr>
            
            
        </table>
</center>
</asp:Content>

